home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Interfaces / Universal Interfaces / QDOffscreen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-30  |  4.5 KB  |  134 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        QDOffscreen.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __QDOFFSCREEN__
  13. #define __QDOFFSCREEN__
  14.  
  15. #ifndef __QUICKDRAW__
  16. #include <Quickdraw.h>
  17. /*    #include <Types.h>                                            */
  18. /*        #include <ConditionalMacros.h>                            */
  19. /*        #include <MixedMode.h>                                    */
  20. /*            #include <Traps.h>                                    */
  21. /*    #include <QuickdrawText.h>                                    */
  22. /*        #include <IntlResources.h>                                */
  23. #endif
  24.  
  25.  
  26. /* New error codes */
  27.  
  28. enum  {
  29. /*invalid pixel depth */
  30.     cDepthErr                    = -157
  31. };
  32.  
  33. enum  {
  34.     pixPurgeBit                    = 0,
  35.     noNewDeviceBit                = 1,
  36.     useTempMemBit                = 2,
  37.     keepLocalBit                = 3,
  38.     pixelsPurgeableBit            = 6,
  39.     pixelsLockedBit                = 7,
  40.     mapPixBit                    = 16,
  41.     newDepthBit                    = 17,
  42.     alignPixBit                    = 18,
  43.     newRowBytesBit                = 19,
  44.     reallocPixBit                = 20,
  45.     clipPixBit                    = 28,
  46.     stretchPixBit                = 29,
  47.     ditherPixBit                = 30,
  48.     gwFlagErrBit                = 31
  49. };
  50.  
  51. enum  {
  52.     pixPurge                    = 1L << pixPurgeBit,
  53.     noNewDevice                    = 1L << noNewDeviceBit,
  54.     useTempMem                    = 1L << useTempMemBit,
  55.     keepLocal                    = 1L << keepLocalBit,
  56.     pixelsPurgeable                = 1L << pixelsPurgeableBit,
  57.     pixelsLocked                = 1L << pixelsLockedBit,
  58.     mapPix                        = 1L << mapPixBit,
  59.     newDepth                    = 1L << newDepthBit,
  60.     alignPix                    = 1L << alignPixBit,
  61.     newRowBytes                    = 1L << newRowBytesBit,
  62.     reallocPix                    = 1L << reallocPixBit,
  63.     clipPix                        = 1L << clipPixBit,
  64.     stretchPix                    = 1L << stretchPixBit,
  65.     ditherPix                    = 1L << ditherPixBit,
  66.     gwFlagErr                    = 1L << gwFlagErrBit
  67. };
  68.  
  69. typedef unsigned long GWorldFlags;
  70.  
  71.  
  72. /* Type definition of a GWorldPtr */
  73.  
  74. typedef CGrafPtr GWorldPtr;
  75.  
  76. #ifdef __cplusplus
  77. extern "C" {
  78. #endif
  79.  
  80. extern pascal QDErr NewGWorld(GWorldPtr *offscreenGWorld, short PixelDepth, const Rect *boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags)
  81.  FOURWORDINLINE(0x203C, 0x0016, 0x0000, 0xAB1D);
  82. extern pascal Boolean LockPixels(PixMapHandle pm)
  83.  FOURWORDINLINE(0x203C, 0x0004, 0x0001, 0xAB1D);
  84. extern pascal void UnlockPixels(PixMapHandle pm)
  85.  FOURWORDINLINE(0x203C, 0x0004, 0x0002, 0xAB1D);
  86. extern pascal GWorldFlags UpdateGWorld(GWorldPtr *offscreenGWorld, short pixelDepth, const Rect *boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags)
  87.  FOURWORDINLINE(0x203C, 0x0016, 0x0003, 0xAB1D);
  88. extern pascal void DisposeGWorld(GWorldPtr offscreenGWorld)
  89.  FOURWORDINLINE(0x203C, 0x0004, 0x0004, 0xAB1D);
  90. extern pascal void GetGWorld(CGrafPtr *port, GDHandle *gdh)
  91.  FOURWORDINLINE(0x203C, 0x0008, 0x0005, 0xAB1D);
  92. extern pascal void SetGWorld(CGrafPtr port, GDHandle gdh)
  93.  FOURWORDINLINE(0x203C, 0x0008, 0x0006, 0xAB1D);
  94. extern pascal void CTabChanged(CTabHandle ctab)
  95.  FOURWORDINLINE(0x203C, 0x0004, 0x0007, 0xAB1D);
  96. extern pascal void PixPatChanged(PixPatHandle ppat)
  97.  FOURWORDINLINE(0x203C, 0x0004, 0x0008, 0xAB1D);
  98. extern pascal void PortChanged(GrafPtr port)
  99.  FOURWORDINLINE(0x203C, 0x0004, 0x0009, 0xAB1D);
  100. extern pascal void GDeviceChanged(GDHandle gdh)
  101.  FOURWORDINLINE(0x203C, 0x0004, 0x000A, 0xAB1D);
  102. extern pascal void AllowPurgePixels(PixMapHandle pm)
  103.  FOURWORDINLINE(0x203C, 0x0004, 0x000B, 0xAB1D);
  104. extern pascal void NoPurgePixels(PixMapHandle pm)
  105.  FOURWORDINLINE(0x203C, 0x0004, 0x000C, 0xAB1D);
  106. extern pascal GWorldFlags GetPixelsState(PixMapHandle pm)
  107.  FOURWORDINLINE(0x203C, 0x0004, 0x000D, 0xAB1D);
  108. extern pascal void SetPixelsState(PixMapHandle pm, GWorldFlags state)
  109.  FOURWORDINLINE(0x203C, 0x0008, 0x000E, 0xAB1D);
  110. extern pascal Ptr GetPixBaseAddr(PixMapHandle pm)
  111.  FOURWORDINLINE(0x203C, 0x0004, 0x000F, 0xAB1D);
  112. extern pascal QDErr NewScreenBuffer(const Rect *globalRect, Boolean purgeable, GDHandle *gdh, PixMapHandle *offscreenPixMap)
  113.  FOURWORDINLINE(0x203C, 0x000E, 0x0010, 0xAB1D);
  114. extern pascal void DisposeScreenBuffer(PixMapHandle offscreenPixMap)
  115.  FOURWORDINLINE(0x203C, 0x0004, 0x0011, 0xAB1D);
  116. extern pascal GDHandle GetGWorldDevice(GWorldPtr offscreenGWorld)
  117.  FOURWORDINLINE(0x203C, 0x0004, 0x0012, 0xAB1D);
  118. extern pascal Boolean QDDone(GrafPtr port)
  119.  FOURWORDINLINE(0x203C, 0x0004, 0x0013, 0xAB1D);
  120. extern pascal long OffscreenVersion(void)
  121.  TWOWORDINLINE(0x7014, 0xAB1D);
  122. extern pascal QDErr NewTempScreenBuffer(const Rect *globalRect, Boolean purgeable, GDHandle *gdh, PixMapHandle *offscreenPixMap)
  123.  FOURWORDINLINE(0x203C, 0x000E, 0x0015, 0xAB1D);
  124. extern pascal Boolean PixMap32Bit(PixMapHandle pmHandle)
  125.  FOURWORDINLINE(0x203C, 0x0004, 0x0016, 0xAB1D);
  126. extern pascal PixMapHandle GetGWorldPixMap(GWorldPtr offscreenGWorld)
  127.  FOURWORDINLINE(0x203C, 0x0004, 0x0017, 0xAB1D);
  128. #ifdef __cplusplus
  129. }
  130. #endif
  131.  
  132. #endif
  133.  
  134.